package com.atguigu.state.money.allState;

import com.atguigu.state.money.AbstractState;
import com.atguigu.state.money.Context;
import com.atguigu.state.money.StateEnum;

/**
 * @program: design-patterns
 * @author: yangshen
 * @description: 已付款
 * @create: 2022-03-31 15:30
 **/
public class PaidState  extends AbstractState {

    @Override
    public void feedBackEvent(Context context) {
        context.setState(new FeedBackState());
    }

    @Override
    public String getCurrentState() {
        return StateEnum.PAID.getValue();
    }
}
